package com.apartment.own.domain;

import java.util.Date;

import com.apartment.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.apartment.common.annotation.Excel;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 付款分阶对象 own_ord_payment_tier
 * 
 * @author @Dog_E
 * @date 2020-08-28
 */
@Data
@ApiModel("付款分阶")
public class OwnOrdPaymentTier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 删除标志（0代表存在 1代表删除） */
    @ApiModelProperty("删除标志（0代表存在 1代表删除）")
    private String delFlag;

    /** 免租期前置类型 0:付 1:免 */
    @ApiModelProperty("免租期前置类型 0:付 1:免")
    @Excel(name = "免租期前置类型 0:付 1:免")
    private String rentFreePeriodType;

    /** 起始时间 */
    @ApiModelProperty("起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "起始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 月租金 */
    @ApiModelProperty("月租金")
    @Excel(name = "月租金")
    private Long monthlyRent;

    /** 支付类型 0:一次性付清 1-12:付1-付12 */
    @ApiModelProperty("支付类型 0:一次性付清 1-12:付1-付12")
    @Excel(name = "支付类型 0:一次性付清 1-12:付1-付12")
    private Integer extraCostPayType;

    /** 应付款次数 */
    @ApiModelProperty("应付款次数")
    @Excel(name = "应付款次数")
    private Integer shouldPaymentNumber;

    /** 实际付款次数 */
    @ApiModelProperty("实际付款次数")
    @Excel(name = "实际付款次数")
    private Integer actualPaymentNumber;

    /** 外建id(可重复,用表标识区分) */
    @ApiModelProperty("外建id(可重复,用表标识区分)")
    @Excel(name = "外建id(可重复,用表标识区分)")
    private Long foreignId;

    /** 表名字(标识不同的对象一对多关系) */
    @ApiModelProperty("表名字(标识不同的对象一对多关系)")
    @Excel(name = "表名字(标识不同的对象一对多关系)")
    private String surfaceName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRentFreePeriodType(String rentFreePeriodType) 
    {
        this.rentFreePeriodType = rentFreePeriodType;
    }

    public String getRentFreePeriodType() 
    {
        return rentFreePeriodType;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setMonthlyRent(Long monthlyRent) 
    {
        this.monthlyRent = monthlyRent;
    }

    public Long getMonthlyRent() 
    {
        return monthlyRent;
    }
    public void setExtraCostPayType(Integer extraCostPayType) 
    {
        this.extraCostPayType = extraCostPayType;
    }

    public Integer getExtraCostPayType() 
    {
        return extraCostPayType;
    }
    public void setShouldPaymentNumber(Integer shouldPaymentNumber) 
    {
        this.shouldPaymentNumber = shouldPaymentNumber;
    }

    public Integer getShouldPaymentNumber() 
    {
        return shouldPaymentNumber;
    }
    public void setActualPaymentNumber(Integer actualPaymentNumber) 
    {
        this.actualPaymentNumber = actualPaymentNumber;
    }

    public Integer getActualPaymentNumber() 
    {
        return actualPaymentNumber;
    }
    public void setForeignId(Long foreignId) 
    {
        this.foreignId = foreignId;
    }

    public Long getForeignId() 
    {
        return foreignId;
    }
    public void setSurfaceName(String surfaceName) 
    {
        this.surfaceName = surfaceName;
    }

    public String getSurfaceName() 
    {
        return surfaceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("rentFreePeriodType", getRentFreePeriodType())
            .append("startTime", getStartTime())
            .append("finishTime", getFinishTime())
            .append("monthlyRent", getMonthlyRent())
            .append("extraCostPayType", getExtraCostPayType())
            .append("shouldPaymentNumber", getShouldPaymentNumber())
            .append("actualPaymentNumber", getActualPaymentNumber())
            .append("foreignId", getForeignId())
            .append("surfaceName", getSurfaceName())
            .toString();
    }
}
